<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>jquery.iviewer test</title>
    <link rel="stylesheet" href="../jquery.iviewer.css"/>
    <script type="text/javascript" src="../lib/jquery.js"></script>
    <script type="text/javascript" src="../lib/jqueryui.js"></script>
    <script type="text/javascript" src="../lib/jquery.mousewheel.min.js"></script>
    <script type="text/javascript" src="../jquery.iviewer.js"></script>
    <script type="text/javascript" src="../lib/drag.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            $('.img', window.parent.document).PreImageBox({container: '#viewerContainer'});
        });

        function addImage() {
            $('body').append('<a src="test_image3.jpg" href="javascript:;" class="img">图片1</a>');
            $('.img').PreImageBox({container: '#viewerContainer'});
        }
    </script>
    <style>
        html, body {
            height: 100%;
            padding: 0;
            margin: 0;
        }

        .wrapper {
            height: 1000px;
        }


    </style>
</head>
<body>
<div class="wrapper">
    <div id="viewerContainer"></div>
</div>
</body>
</html>
